# name : Delete file in data _NULL_ step
# key : file.delete.null
# contributor: Shuguang Sun
# --
data _null_;
  fname = "tempfile";
  rc = filename(fname, "${1:path/to/file}");
  if rc = 0 and fexist(fname) then
     rc = fdelete(fname);

  msg = sysmsg();
  put msg=;

  rc = filename(fname);
run;